* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}
.layout {
  min-width: 320px;
  max-width: 640px;
  margin: 0  auto;
}
.layout header {
  position: fixed;
  min-width: 320px;
  max-width: 640px;
  color: #fff;
  height: 0.8rem;
  background-color: red;
  text-align: center;
  font-size: 0.3rem;
  line-height: 0.8rem;
}
.layout header a {
  position: absolute;
  left: 0;
  padding: 0 0.2rem;
  color: #fff;
}
.layout > div {
  padding: 0.8rem  0  1rem;
}
.layout > div .bg {
  width: 100%;
}
.layout > div .bg img {
  width: 100%;
  height: 3rem;
  display: block;
}
.layout > div nav ul {
  width: 100%;
  padding: 0.1rem 0;
  overflow: hidden;
}
.layout > div nav ul li {
  width: 25%;
  float: left;
  text-align: center;
}
.layout > div nav ul li a {
  display: block;
  width: 100%;
}
.layout > div nav ul li a p:nth-child(2) {
  font-size: 0.18rem;
}
.layout > div main {
  width: 100%;
}
.layout > div main div img {
  width: 100%;
  display: block;
}
.layout > div main div p {
  font-size: 0.25rem;
}
.layout footer {
  position: fixed;
  min-width: 320px;
  max-width: 640px;
  bottom: 0;
  background-color: #999;
}
.layout footer ul {
  width: 100%;
  padding: 0.1rem 0;
  overflow: hidden;
}
.layout footer ul li {
  width: 25%;
  float: left;
  text-align: center;
}
.layout footer ul li a {
  display: block;
  width: 100%;
}
.layout footer ul li a p:nth-child(2) {
  font-size: 0.18rem;
}
